AWSS3GetService
Type
command
Summary
Get the S3 service description.
Syntax
AWSS3GetService <pCallback>
Description
The caller of this command will be sent the callback message on completion with two parameters:
- the request ID
- the response from the server parsed into an array.
- an error message if one occurred
The array contains service owner details and details of the s3 buckets available.
For futher details about this API see the AWS S3 REST API Documentation
Parameters
Name | Type | Description |
---|---|---|
pCallback | A command name to be sent on completion with the server reponse. |
Examples
AWSS3GetService "getServiceCallback"
put it into tRequestID
on getServiceCallback pRequestID, pResult, pError
if pError is empty then
local tBucketNames
repeat with tIndex = 1 to the number of elements of pResult["Buckets"]["Bucket"]
put pResult["Buckets"]["Bucket"][tIndex]["Name"] & return after tBucketNames
end repeat
end if
end getServiceCallback
Related
function: tsNetGetStatus, tsNetRetrHeaders
library: tsNet